So when you compile where do the paths come from? Are they the defined paths in the .bashrc of the user trying to compile? I've ran into this sort of compiling problem at time, but never knew what to do to fix it.