Win32 fix & elf loading fix

Fixed compilation error for x86 version. Fixed issue with ELF loading.