liblinear: replace chmode by fperms