Fixed build issues on Mono