Fixed g++ compile error.