Make sure we're compatible with FreeBSD's 'date' and 'getopt'

Signed-off-by: Giel van Schijndel <me@mortis.eu>