configure: test static build configuration explicitly

Closes issue #79.