made it compile and link on Widnows (as static library)