As the pipe would crush if you put your foundation on it (leaving you with blocked drains and a cracked building) I think you have 2 options-
1. Dig the foundation to below the level of the pipe (so approx 300mm below all the shingle et al and leave the pipe running alongside the brick n'...