fixups
use xbmc macros
build jsoncpp if not available
don't include AddOptions here
[packaging] add debug package
Merge pull request #1 from wsnipex/macros

[packaging] add debug package
Merge remote-tracking branch 'origin/macros'

Conflicts:
	CMakeLists.txt