tools: use static compiles to fix seg faults on some devices