add library file oslib.c