Fix WP8/WinRT ARM build
Fix crash on memory validation