devmapper: add missing defines

Add some missing defines which are needed for compiling on older systems
like RHEL 6.
Merge pull request #3095 from jpoimboe/missing-defines

devmapper: add missing defines