fix build system for new deps, and dojo 1.8