Fix broken kernel threads comp builds

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

Fixes #171
Merge pull request #170 from zultron/mk-pull

module-loading/shared-test.sh:  fix race & print debug output
Merge pull request #172 from zultron/mk-pull-2

Fix broken kernel threads comp builds
hal/cython: fix parallel builds
gladevcp - bug if filename has several dots

The store will not contain names with several dots in its
name, because of a using split instead of rsplit.
So names like:

Pocket 2.5 test(1).ngc

was not shown.

The error has been solved
Merge pull request #174 from gmoccapy/master

gladevcp - bug if filename has several dots
Merge pull request #173 from mhaberler/master

hal/cython: fix parallel builds
gmoccapy_postgui.hal file contained a "=" sign causing an error

I found this one playing with BBB
Merge pull request #175 from gmoccapy/master

gmoccapy_postgui.hal file contained a "=" sign causing an error
configs : Add PocketNC configuration
PocketNC configuartion files provided by Duane Bishop <duane@pocketnc.com>

Signed-off-by: Charles Steinkuehler <charles@steinkuehler.net>
Merge pull request #176 from cdsteinkuehler/config-PocketNC

configs : Add PocketNC configuration
rtapi_shmem: retrieve the size of an attached segment.

This was likely an oversight and is needed for introspection, boundary checks,
and a useful Python API to RTAPI shared memory segments.

Fixes #178 .
halmodule: enable attach to existing rtapi shm segment
config -> velocity extruding: wire oneshot.0.width with analog output

added net to analog output so the width of the oneshot can be
easily adjusted with M68 from G-code. Cleaneup of obsolete code in
comments
config -> relocate configuration for velocity extruding

this gives the opportunity to keep the directory clean and
make a README file for explaining how this solution works
Merge pull request #180 from luminize/vel-control-extruding

config -> update and relocating of config files for velocity extruding
config -> add scripts for postprocessing slic3r g-code files
config -> corrected moved config files

due to a move of config files to a subdir the deleted files
were not committed in the 'old' location.
Merge pull request #179 from mhaberler/rtapi-shmem-size-param

RTAPI: retrieve the size when attaching a shared memory segment

After a discussion with Michael, this API change looks mostly internal.  While it could be used externally in a comp, it looks unlikely, and even more so at this early stage of Machinekit's existence.  Therefore, we're not going to worry much about the 'Evolution of Public Contracts' section of C4 [1].

Merging patch.

[1] http://rfc.zeromq.org/spec:22#toc8
config : add pressure adjustment to .hal file

with the lincurve function you can in/decrease extra velocity for the
buildup of pressure in the nozzle. This prevents blobs (release of
the builtup pressure) at the low velocity points

add gcode testfile which you can use for tweaking machine specific settings