Compile as C++ for C99 compatibility with older Visual Studio versions.