I think I faced similar problem. I am not sure whether they are related. I had previous installation in my prefix path. I removed that and ran make which made the compilation to work without any issues.