Get rid of many compiler warnings