fixed compilation for ios