Fixed magic.cpp failing to import header file