fix %ld warning on iOS