Fixing compile time warnings