fixes to build on linux 64bit
fix renderer build
renderer gets past splash screen
Some fixes from dpadgett/jaMME

231c1f79486b7d5a5767b32b7a6d77984ca1dc9b
more fixes
and more
yet more mac stuff
fix linux compilation