fixed compile errors for node 11 implementation following JMain refactor.