fix compiler warnings and set the correct icon