[ABM] Fix compilation error and warining under Linux