(core+) buildfixes, extended image_children

image_children now has an alternate form where
you can test if a specific vid is a relative
of another.

the buildfixes concern the removal of GL_HEADERS
and subsequent breakage on OSX.