update build scripts for mono platforms