Fix linking with GNU ld.