Fix l1 loss layer compiling.