move link from cflags to ldflags