Improve finding protobuf-c and PostgreSQL, emulate make check,
copy executable for testing