Split CLI from libraries, create libfmagic.