conditional init for older cocoas version