compilation: Fixed some of gcc-4.4 errors