added tomcat5 fix and windows autostart option