added compilation flags for C files and "link" flags for static libraries.