add options
Merge pull request #2 from andystanton/master

Make shared and static libraries optional