Add support for static linking on Windows