Fix build windows

Minor fixes on SWIG-generated libraries.