fix some warnings detected by the cray compiler