Updated for compiling on mono