activate and fix compiler warnings, compile with -std=c++0x