use ISO C11 standard and move includes to header file