fix to symbol not found errors
add test for PQlibVersion
refine PQexec test