Rewrote compile scripts in rust.
This should minimize portability issues.