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.