Sim compile fixed.

Helpful for when your project needs to be able to run in a sim, even though hardware can not be attached.