fix embed.cpp build for 64-bit Windows
fix Windows OpenJDK build