remove static linking flags