misc: fixed almost all compiler warnings, 1 left