standardize link flags, use rc instead of windres