fixed build scripts for mono