Mantle v0.004

Beware of ordering issues, stable sort, and pre-defined
platform-specific macros!!