Compile to proper AMD module with correct dependencies