Fix potential memory leak and libpsl configure
Fix broken check for libpsl