enable static library build when not WIN32