fix build: create statically linked libavoid
allow user to choose shared and static