Fixed some compile time warnings