add interfaces enable custom oclMat device memory type
fix build errors
Merge pull request #576 from bitwangyaoyao:2.4_customMat2