fix compilation for .net 4.0
Merge pull request #8 from vasily-kirichenko/master

fix compilation for .net 4.0