Add nanosecond resolution to file stat functions

Based on Ray Donnelly's idea in ddf7f4ab35002f6eb04094b98127bd8f445512e5