fix dispose error
lower .NET framework requirements to .NET version 4.0