Change api compatibility to .Net 2.0 to fix a runtime bug