Reference -fPIC only once, and don't use it on Windows