Refined clonie.c for OSX