fixed some compile issues introduced by Mono.