Fix G++ 4.7 issues

Hello, this fix makes possible build under debian testing with new g++ compiler.