tweaks to build to remove Lwt_main dependency (which need unix)