--- a/src/org/esb/CMakeLists.txt
+++ b/src/org/esb/CMakeLists.txt
@@ -114,6 +114,7 @@
 add_subdirectory (mq)
 add_subdirectory (grid)
 add_subdirectory (rpc)
+add_subdirectory (api)
 #TARGET_LINK_LIBRARIES(lang
 #  ${BOOST_THREAD_LIB_MT}
 #)
@@ -431,7 +432,7 @@
 
 include_directories (${MEC_SOURCE_DIR}/src/org/esb/config)
 add_library (esb config/config.cpp)
-TARGET_LINK_LIBRARIES(esb util io)
+TARGET_LINK_LIBRARIES(esb util io hive db)
 IF(BUILD_SHARED_LIBS)
 INSTALL(TARGETS esb
     RUNTIME DESTINATION bin