build archiver and dynamic library
fix warnings
CFLAGS/LDFLAGS can be override