Feature: adding ability to build AMD module