fixed Mac OSX builds, changed printf to fprintf(stderr, in OSEmu.c