added libraries and changes neccessary for it to work in windows.