Lots of bugfixes and fixes in order to let ik work properly on different physical machines