Changes for use with newer linuxcnc (>=2.5)
Changes done by alan_3301 of cnczone.com