Compilation fix for pulse source module + Merge some fixes from master branch

* let module-xrdp-source compile on CentOS6 (PA 0.9.21)
* Set lock when adding new displays to the chain
* simplesound: fixed CHANSRV_PORT_STR undefined error