use older/more widely available POSIX file stat functions on OS X