Fix problems with requireJS build process