Fixed MCServer not compiling with C++03 compilers

I also fixed some warnings. Apart from checking if it compiles did I not actualy test it.