Export DEBUG and actually use STRIP_PREFIX

Export the DEBUG variable so we don't accidentally strip debugging
information from programs deeper into the tree (did this ever happen
with the code? I don't know).

STRIP_PREFIX wasn't used to suppress calling the strip utility. This
definitely led to lost debugging symbols.