Fixes for BUILDSTATIC + Linux

Python bindings require dynamic library that needs different -fPIC
setting than is used when building .a, so don't build Python bindings on
Linux when BUILDSTATIC=1.
Fix OpenEXR brittleness with malformed metadata.
Our particular case was a string called "tiles" -- triggers an exception
inside libIlmImf.