updated to new be13_api with mingw fixes