showDate: fix bogus three-digit year produced by time-1.4.0.1 or later

Plus some other minor changes to fix the build with ghc 7.8.x or later.