Fix compilation errors for libibpp