Changed to compile as c++ for all build configurations.

Stupid of me, forgot to change the build configuration for the others.