Add -fPIC flag when compiling 3rd party libraries