fixed compilation error on unix.