Fix dependency generation for C++11