--- src/CMakeLists.txt.orig	2015-12-08 07:09:32 UTC
+++ src/CMakeLists.txt
@@ -66,7 +66,7 @@ add_library (otp STATIC otp.c)
 ## Program
 
 add_executable (openvasmd openvasmd.c ompd.c)
-target_link_libraries (openvasmd ovas-mngr-comm omp otp manage ${GNUTLS_LDFLAGS} ${GPGME_LDFLAGS} ${GCRYPT_LDFLAGS} ${CMAKE_THREAD_LIBS_INIT})
+target_link_libraries (openvasmd ovas-mngr-comm omp otp manage ${GNUTLS_LDFLAGS} ${GPGME_LDFLAGS} ${GCRYPT_LDFLAGS} ${CMAKE_THREAD_LIBS_INIT} -lexecinfo)
 
 set_target_properties (openvasmd PROPERTIES LINKER_LANGUAGE C)
 
@@ -159,7 +159,7 @@ install (TARGETS openvasmd
 
 if (BACKEND STREQUAL POSTGRESQL)
   install (TARGETS manage-pg-server
-           LIBRARY DESTINATION "${OPENVAS_STATE_DIR}/openvasmd/pg/")
+           LIBRARY DESTINATION "${OPENVAS_LIB_INSTALL_DIR}/openvasmd/pg/")
 endif (BACKEND STREQUAL POSTGRESQL)
 
 ## Static analysis
