Avoid reliance on undefined memcpy() behaviour

EmuThreadFunction() passes ROM_HEADER as destination and CoreDoCommand()
uses it as source.
Fix x86 build
Merge pull request #134 from heuripedes/master

Fix x86 build and memcpy() ub