fixed building error from console on WP8. fixed crash in System module