fixed g++ build