updated Library
compiling in MacOSX with CLang
fixed bug in c compiler flags