Cleaned up lots of compile warnings.