Linux patches for KMotionDLL and GCodeInterpreter

Patches to build KMotion on Linux. Mostly minor changes due to case
sensitive filesystem. Also changed some types to build on different
architectures.