only build static or shared, not both

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>