Fix compilation for Windows Phone 8.
Fix compilation on Linux.
fix possible use of freed object
Merge branch 'master' of git://git.linphone.org/linphone