examples/progressfunc: make it build on older libcurls
This example was changed in ce2140a8 to use the new microsecond based
getinfo option. This change makes it conditionally keep using the older
option so that the example still builds with older libcurl versions.
Closes #2584