Windows does canonicalization of inheritance bits. Do the same.