Merge pull request #7981 from ricardoquesada/cmakefile_for_mac

Squashed commit of the following:
Platform fixed
Fixes for linux compilation
compiles and runs in Linux
Moved base/CCPlatform* -> platform/CCPlatform*
compiles and runs on linux
Compiles on Android
Compiles in Win32
compiles on winphone8
compiles on wp8
Updates CHANGELOG
Merge pull request #7984 from ricardoquesada/fixes_platform_directory

Fixes platform directory