Fix windows build
Support compilation as static libraries
Change WINDOWS by _WIN32
Merge pull request #31 from crazyjul/windows_compilation

"Windows compilation" from crazyjul merged.  Looks great!