x86: fix download script for OSX

Mac OSX does not have `wget`, but `curl`.
It does not understand `tar xJ`, but `tar xj`.
Merge pull request #1250 from Kijewski/x86-osx-fix-download

x86: fix download script for OSX