Changed POSIX threads to C++11 threads

Account creation completed, although untested. Slight problem in OpenPGP
prevents the KDC from decrypting the kh without crashing (OpenPGP
exception, not random crash)