Hack around a bug in monos MSBuild implementation in a better way