set -fPIC on osx too and also adds -fno-common -DPIC compiler flags on osx