Fix build on mono