Add support for futimens for platforms that don't support futimes.

Patch by pashev.igor.