bugfixes and additions to buildscript/packagescript/propertysheet