Use Cargo for building library

Closes https://github.com/PistonDevelopers/rust-empty/issues/168