Replace and merge DetectionUtil and DirectByteBufUtil into PlatformDependent and PlatformDependent0

PlatformDependent delegates the operations requires sun.misc.* to PlatformDependent0 to avoid runtime errors due to missing sun.misc.* classes.