Remove tests as they do not compile anymore
Link against libpthread
Add  -fpermissive CXXFLAG to work around compile errors
Add this-> to call of internal functions
Make it compile with Qt4