added MsBuild support and fixed some bugs.