fix problem with non-commonJS systems