Fix code_gen to prevent calls to 'hook_XXX' functions from being generated (resulting code will not build).
Add semaphore functions to finsig_dryos.c (from srsa_4c).
http://chdk.setepontos.com/index.php?topic=6560.msg101887#msg101887
Fix sort order inconsistency for key values list in finsig_dryos.c.