Candidate implementation of BSD timers.

Also use Julia's support/dtypes.h just to make sure the types are
declared identically.