Made asm generation platform independent (for mac only)