Fixed some compilation issues on OS X after reading WinRT changes.