Add #include guards for HAS_PYTHON

This fixes compile of Addon.cpp and Weather.cpp if HAS_PYTHON is not defined
Remove Python dialogs when compiling without Python

cherry-picked from https://github.com/plexinc/plex-home-theater-public/commit/f76df3e72
Retain type safety by using const_cast instead of C-style cast
Merge branch 'github.com/adddroidlibstagefright'

Conflicts:
	tools/depends/target/Makefile
	xbmc/android/activity/XBMCApp.cpp