Disable building static libraries

Shrinks the size resulting from a 'make install' considerably.

On a build with the options:
../configure --enable-optimize build

du -h of the install directory gives:
52MB with patch
113MB without patch

Review: https://reviews.apache.org/r/28082