add .bat file for kserver and fix nailgun on windows

@yilongli please review