Move malloc_allocator into its own header so that the normal tests don't have to depend on the exception testing code.