Fix build on mono
(cherry picked from commit 0e17038138463c41ad194324b85ac05e9a920209)
Add unix build script
(cherry picked from commit b3e87aca4ea62ca15ac75384f4b8076f094c066c)