simulator: fix Linux compile errors