Build against libmagic
Test with and without libmagic on Travis