Make dynamic linking optional when configuring.