fix for route.h issue, compilation differs depending on if targetting simulator or device.