Tweak configure options for static build