made the platform replacement functions extern
converted the arc4* function wrappers to makros