cpp: bioformats: Move pragmas in PixelProperties outside function definitions

Older GCC versions don't like pragmas inside functions.  Newer versions of
GCC, and clang, are fine with this.