Fix floating point cast warning
Fix buffer pointer cast warning
Convert Win32 filename from char to wchar_t