Fix static GCC build.