Fix all warnings when compiling with gcc 4.8.
BeBox should be ready for 4.8 now.