xorg-build: fixed and updated debian builds

also try optimized build on ubuntu. To disable use -DUBUNTU_DETECTION=ON
rds: fix when client wasn't fully initialized
switching to connection id instead of session id,WORK IN PROGRESS