OS X fixes

fixed x86_64 and sed commands