Fixup linker selection in autoconf configuration

Signed-off-by: Simon Busch <morphis@gravedo.de>