fixing cc/ld options dependencies