Fixed nightlies warning
Added option for out-of-source build.