Fix broken ability to compile Dbo only

Also we fix an issue that cmake cannot specific correct sysroot according to our configuration on my macbook pro.