fixed compilation errors in nightly builds, new scripts