Merge *_CFLAGS and *_LDFLAGS to *_FLAGS.
Fixed several compiler warnings.
Added more strict CFLAGS.
Update submodules