compile with threaded option, remove some output junk