Fix BUILD_STATIC_PIC build.