Fixed -fPIC not being set when building static libraries