Fix g++ warnings