support gcc-4.8.3 and support download file type check

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>