From what I've read, the commandment "Thou Shalt Not Kill" would have been more properly translated as, "Thou Shalt Not Commit Murder." A subtle difference, perhaps, but when you consider outsiders to be non-people it makes a difference. Killing in war is not considered murder. Killing a heretic is not considered murder. Killing a slave is not considered murder. Convenient, that.