fixed mkln function for rhel4