simulator: update to support simulator for linux
Merge pull request #134 from prife/sim-fix

simulator: update to support simulator for linux