Fix the !USE(IOSURFACE) build