Win32 fixes

Notably, win32 compatbility functions are in the
bciinterface namespace to avoid conflict when
linking with other libraries defining the same functions