added getInstance
fixed misplaced platfrom check for WP8 and WinRT
cpp-tests working