Revert "Try another flags for static build"

This reverts commit 84d4c8ee84b2906c81ee99a91a515384ed025d2b.