Solved like 3/4 of linking issues with this flags.