Fixed code to eliminate build warnings for x64 configuration