simulator: fix gcc warnings