adding libmagic to the build