Build fix for Android NDK which has neither futimes nor futimens

Based on a patch by Neil Henning!