fix remaining compile errors & io module loading
made promises lockable so forks can span workers