fix compile errors with vs in bsp/simulator