Revert "GCC -static flag enabled"

This reverts commit 71d6b8a769f5f307808feeeb2006056579a96c41.