Fixed mono build errors
Sorted out whitespace
Added monobuild fixes