fixed api project on windows fixed #5, fixed #6