more robust cflags/ldflags