Fix compilation for MD/XS

I've replaced the MONO define with the regular Mono compiler define, and patched up the dedicated csproj to include the missing files. That could potentially be removed though, now that the main solution builds on Mono :)