Use the grabcut source code instead of the dll. Add the grabcut testing project. Finishing compile.