Fix compiler warnings and build

Yeah old habit ;)