resolving errors with apm upgrade on windows

![2014-05-12 11_46_46-untitled](https://cloud.githubusercontent.com/assets/1731943/2947337/254bf044-d9f5-11e3-9b29-1425da0361b0.jpg)