Fixed g++ warnings