Support cross compiling
Support cross compiling

The build target in `build.rs` is available as environment variable at
runtime, not compile time.

While at it refactor the code to support the future ARM assembly
contributions.

xiph/rav1e,xiph/rav1e