configure: Fix attribute((packed)) test when using -Werror