- improve checks for ld an cpp flags