initial code from refactored AutobahnJS SConstruct