Minor changes to enable c++11 compilation

This adds several minor changes to allow compilation of xbmc with -std=c++11 (tested with clang-3.4).

Almost all changes are just syntax changes, which shouldn't change anything in the result. Only exception is commit 4feadca which changed the type of two macros from unsigned to signed, because it would lead to impossible narrowing