script to create an interface file with correct order of importing headers