lua-setup.cc: Use luaL_Reg instead of our own structure

They're exactly the same, so lets use the standard one.
configure.ac: Detect and use gcc "-fuse-ld=gold" option

We want to use the GNU "gold" linker instead of the default GNU
binutils linker if it's available, and sometimes this option can be
used to indicate that.