add test code to catch if pkg-config openhrp3.1 does not work well, also...

... fixed install process PROJECT_SOURCE_DIR -> CMAKE_INSTALL_PREFIX/share/openhrp3