Tell me which country isn't a contracting ICAO state these days? ICAO may set and define the standards, but it does not regulate the standards. Licensing authorities around the world know which countries are the 'dodgy' ones and will only accept licenses from those with high regulatory standards.
Just look at the
Tiger Air requirements for pilot recruitment example; "ICAO recognised ATPL (
acceptable to Civil Aviation Authority of Singapore )"