Backport recastnavigation revision 255.

DETOUR return status codes changed, check blog! Changed Detour status
codes to be bitfields which describes the highlevel status plus some
details about the failure or quality of the result.