Make sure -std=gnu++0x is passed for C++ submissions

Fixes a regression with C++ problems - apparently we used
to always pass this flag, but in the modification to separate
C from C++, I broke this :-(