toggling of static build via STATIC_BUILD define