initialize function for openchange ldb context
added openchangedb_transaction_* functions
initialization of openchangedb_ldb and fix lots of compilation errors