Compatibility fixes for RepetierHost.