Other platforms with malloc-based os_mmap might need similar changes too, depending on their target cpu arch.