fix not-in-source builds

this fix makes it possible to compile OT out-of-source folder, in particular with then new ot_config.h