build: Import makedef script from c99-to-c89