Fix gcc compilation warnings

Mostly 'converting to non-pointer type int from NULL' and vice versa
Move ElementStyleCache.* to Core
More fixes for compilation warnings
Merge remote-tracking branch 'viciious/fixwarnings'

Conflicts:
	Build/vc2010/RocketCore.vcxproj.filters