Fix: cmake: STATIC_BUILD undefined