Fixed string find warning on 64-bit systems

On 64-bit systems this code would probably never have detected the
'not found' case.
Fixed warning about ISO for scoping

src/uicustomcontrol.cpp:4689:71: warning: name lookup of 'iTeamMember' changed for ISO 'for' scoping [-fpermissive]
No longer needs -fpermissive to compile