Use generated headers in os.h
Use generated static declarations in cursor.c