Fixed g++ warnings

Now it's working without any delays