Ensure we can build with stable
Until the allocators API is added (which will probably stable 1.28), we need to use internal allocator functions to build on stable. There's been a few issues with the borrowck that have been fixed as well.
Edited by Tom Almeida