Really fix mac build?

Only include magic.h for c++