Changed pre-build to *nix compatible method.
Improved support for build process on mono.