Best practices for getting CFLAGS/LDFLAGS etc.