Fixed g++ compilation issue