minor cleanups, change c standard to c11