configure.ac: use preprocessor to detect libpqos version