Signed-off-by: kenz

Support MacOS.
Merge https://github.com/kenz/9patch2fire