Refactor build flags to let the portable Lwt-core be built independently of Lwt.unix