Added error defines and fixed wrong error return in _kirk5