some compatiblities fixes for 4store