Fixed macro names and included System.Reflection for windows 8/wp8