Improve Cargo build.

Also adds support for Android.
Merge pull request #56 from metajack/better-cargo

Improve Cargo build.