Improved calculations of linker and compiler flags.