Fix all compilation warnings that show up on Linux (2.6.32; x86_64)