Fix build config for static linking.