some fixes for NET20

use alternative constructors of DynamicMethod.
NET20 doesn't have System.DateTimeOffset.