Fix broken kernel threads comp builds

$(EMC2_LIBEXEC_DIR) needs to be defined before the value of $(threads)
is computed.

Fixes #171