capture build output and automatically generate list of undefined symbols in undefined.txt