added mac-os support for demo