Test building both static and dynamic libraries

@dpocock
Do you have any ideas for testing whether the respective builds did what they're supposed to (other than just checking file suffixes)?