Try bounding indices in bdf->glyphs by bdf->glyphcnt in order to avoid crashes.
Add additional guards copied from @tshinnic.
Map U. F. O. version values to the native FontForge version string.
Nit - replace computing constant with that constant

parsettf.c :: readdate() was computing the time difference between
the 1904 epoch time ala Mac and the 1970 epoch time ala Unix.
However this value is a constant and need not be recomputed each time.
One could inspect the computed value once and make static, or derive
the value from various references on the web.

This change replaces code and loop with initialization of a variable
with the constant value.

Tested against three different ttf/ttc files and verified from the
Element / Font Info... / Dates displays before and after change.
Preserve glif names.
Stop reversing the order of references and anchors when importing U. F. O..
Add multi-layer U. F. O. output.
Avoid exporting the default background layer if it's completely empty and was not listed in the input U. F. O..
Make lib data in U. F. O. glyphs layer-specific.
Amplify comments on epoch constants/computations

Better describe the derivation of the constant value now used instead
of a computation loop.  Also mention that since portable 64-bit math
was not known, the remaining loop works on 16-bit slices of the full
64-bit unsigned timestamp value.
Fix a few problems revealed during testing.
Merge branch 'master' into ufo_fontinfo_missing_entries_1
Fix spline overlap problems by disabling the reversal removal routine.
issue1631: disable some features when in collab mode.
Merge pull request #1679 from fontforge/rmo_triangle_fix_1

Fix spline overlap problems by disabling the reversal removal routine.
Merge pull request #1681 from fontforge/monkeyiq/2014/aug/1631

issue1631: disable some features when in collab mode.
ufo: have locale-independant output
Merge pull request #1682 from adrientetar/ufo-locl

ufo: have locale-independant output
Merge pull request #1674 from tshinnic/nit_parsettf_readdate_simplify

Nit - replace computing constant with that constant
Restore ability to build without collab.