re-write build script
separate clang and gcc cflags properly