warning and errors on some platforms reduced