Fixed building examples when some of the libraries are not available.
Updated run and debug scripts