compile with -threaded
remove a hack