SHDP-218 Add cdh5 build options
SHDP-215 Fix compile errors with cdh5

Introduce compatibility class NMTokenCacheCompat to work around
differences between vanilla hadoop and cdh. Cloudera correctly
removed static methods from NMTokenCache by working via
singleton pattern.

This commit only makes sure we're able to compile without
errors, most likely further work is needed when we
get change to CI test cdh.