Use --disable-static or --disable-shared to build only one flavor of libraries. Tested on MacOS, FreeBSD, and CentOS 6 Linux. Resolves #146. Originally submitted by: @i2aaron