Added conditional compilation to test for simulator builds