fixing tools 2653 - enabling custom media types
correcting an exisiting compilation failurein source
Merge pull request #116 from tikaa/master

fixing TOOLS-2653