moved headers to include
C99 compilation