Check if the linker supports version scripts.

This is needed for building on OS X.