There was a missing include path in the compilation line, leading to incorrect fstat ABI. closes #3291