Fix compile time warnings