Fixed error reporting for includes