Sim osx fixes

Two small compilation fixes for sim_osx