Android splitstack implementation

This is a modification for https://github.com/mozilla/rust/pull/5327