Fixed errors in support libraries and dlopenwrap for Windows build.