Fix for lazy-loaded requires in module definitions. Closes #36
build