sim osx: fix compile warnings/errors when compiling sim osx on linux
sim osx: adapt osx simulator to new flash api
Merge pull request #697 from solidgoldbomb/sim-osx-new-flash-api

Adapt OSX sim to the new flash API changes