OK, I decided to try compiling PHP5 as a static Apache module and I followed the install instructions but got the attached error.
Code:
cd /root/apache
./configure
cd ../php5
./configure --with-mysql --with-apache2=../apache
make
cd ../apache
./configure --prefix=/root/apache --activate-module=src/modules/php4/libphp4.a
and there I get the error. Now I'm reading over the documentation again I noticed I missed a make install line
This would probably fix the error but I'm going to post this anyway in case it doesn't 
Thanks
Bookmarks