fix iphone stimulator compile error