Use different ld flags for mac