more CFLAGS and LDFLAGS are specified automatically.
bug fix: fix "--sysroot" option and host platform detection.