Fix net 4.0 support