Make dynamic linking optional when configuring.
Merge pull request #36 from pgj/master

Make dynamic linking optional when configuring.