added -std=c99 -pedantic to compiler options