Fix pthread test case. Nesting main doesn't make much sense.
NetBSD/current needs _KMEMUSER.
mysql-workbench requires C++11 to build with Clang and in turn, should
be free of user-defined string literal syntax.
Use -std=c++0x only for C++ files.