fixed ld flags for ld