Some adjustments of difference_type and size_type on duration types for the adapter code of boost date_time.