added support for building standalone modules