Add flags and rename LIB_DIR in LIBS_DIR