Separate filesystem methods from util.h to to fileutil.cpp/.h. This also
fixes the windows.h include issues.