fixed issues arising while compiling with gcc
added -std=c99 -pedantic -c -fPIC as well as some warning specific flags to the c compiler
fix erroneous -c gcc flag (compile only)