add quartz support
Signed-off-by: Haozi Leung <haozileung.cn@gmail.com>