Fix mono build - relates to #554