The path list was passed in a format not suitable for gcc command-line. Also, let's utilize that we had `with stdenv.lib;`. /cc @abbradar.