Create library fixes

fixes for https://github.com/BladeRunnerJS/brjs/issues/665