Removed some warnings. Modified references to work with Mono.