Pulled information from http://doc.rust-lang.org/guide-ffi.html and http://doc.crates.io/build-script.html