Add ui scale9 sprite

1. Add UIScale9Sprite  to mimic the function of extension::Scale9Sprite and enhance the Scale9Sprite class.
2. Make all the UI classes which used extension::Scale9Sprite now uses ui::Scale9Sprite instead.
3. add UIScale9Sprite Tests 
4. fix platform related compile errors