Added support for AMD and CommonJS (regular and node.js) build systems. Added error message if Hawk is not detected.