Properly set -fPIC compiler flag if required