Fix locally defined but not unused typedef warnings on GCC.

The commit removes unused typedefs that cause warnings on recent GCC versions. These warnings often propagate to other libraries which use Boost.DateTime.