added build.mode property to control debug vs release mode