Fix build for gcc