Put Opt_Static into defaultFlags if not pc_DYNAMIC_BY_DEFAULT (#7478)