Refactored butterfly.c.h to compile