OpenMPI with pgi CDK 147

Hello, i am not able to recompile openmpi-1.7.5 sourcecode with pgi 147.
It turns out following error:
module load compilers/portland/pgi64/2014
[root@newl2 openmpi-1.7.5]# pgcc --version

pgcc 14.7-0 64-bit target on x86-64 Linux -tp sandybridge
The Portland Group - PGI Compilers and Tools
Copyright © 2014, NVIDIA CORPORATION. All rights reserved.

./configure exists without error.

make gives following:

PGC-W-0114-More than one type specified (/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h: 149)
PGC-W-0143-Useless typedef declaration (no declarators present) (/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h: 149)
PGC-S-0039-Use of undeclared variable INT64_T (ompi_datatype_module.c: 278)
PGC-S-0039-Use of undeclared variable AINT (ompi_datatype_module.c: 278)
PGC-S-0074-Non-constant expression in initializer (ompi_datatype_module.c: 278)
PGC-W-0093-Type cast required for this conversion of constant (ompi_datatype_module.c: 278)
PGC/x86-64 Linux 14.7-0: compilation completed with severe errors
make[2]: *** [ompi_datatype_module.lo] Error 1
make[2]: Leaving directory /opt/install/src/openmpi-pgi/openmpi-1.7.5/ompi/datatype' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /opt/install/src/openmpi-pgi/openmpi-1.7.5/ompi’
make: *** [all-recursive] Error 1


This same thing happens with PGI-15.4 and OpenMPI-1.8.5.

export CPP=cpp and rerunning configure fixes this.