Fix Mac OS X compilation

Sorry, not really sure if this is right process (probably not, sorry), but I forked and fixed here:
https://github.com/ppearcy/ptsminer

I'd expect the changes in the .asm files to be Mac OS X specific for how the linker works. 

Anyways, hopefully, this helps...