Fixed the build for gcc variants