update source code to compile beblob on Windows