build a small file in order to build a library
the code is now C99 compatiple