fix compatibility issue with .netframework 4.0

Change-Id: I3fa37c858f63c40dfab272e5acb19c4f6ccaf6ce