Fix ManagementFactory compilation error, and bug #179.

Hi Vintage,

Would you like to review my code changes?
If you agree with the code changes which I made, please merge it into RocketMQ repository.
Thank you so much for your great help!


Thanks,
bitisony