actually define errno
fix dynamic case
more recent version (still broken)
add some threading tests
no longer needed
support clang by adding -fno-integrated-as