add Mac OS X support
remove unused files