If global CFLAGS not set use -O2 as a default for submodules

Issue #168