fixed compile on linux for .net 4.0