Making installMbeanServer public and changed to compile in JDK 7