clean up for XBMC patches

Changed build script for xbmc plus two new patches from issue #36