Optimize static builds on linux