changes to porting.h, added mac folder to misc