now building with advanced function/header file detection