Some fixes to allow to compile in GNU/Linux

Allows to compile with g++ 4.7.3 in GNU/Linux Kubuntu 13.04 x64