Now compiles without multithreading, and compiles using clang on Gentoo Linux