fix g++ build break