Fixes to build openchange