Building chaiscript without threads and some minor cleanup of building.