cdef polyglots; translate part of Watershed to C

cdef polyglots (example: pixelsort_cdef.lua) are files containing preprocessed
C declarations that are valid Lua source but can also be #included from C if
the following macro is defined first:

    #define tonumber(_)