Build Script. Plus fixed compile problem with marionette