Added -pedantic flag, switched to C99 standard