Installing Nvidia proprietary drivers breaks OpenGL compilation

view story

http://askubuntu.com – When I install the Nvidia proprietary driver in Ubuntu 13.04 I can longer compile any OpenGL code written in c. I think the Nvidia drivers breaks or replaces the symlinks in the /usr/lib/ directory but unfortunately I do not know enough of how to fix it. The error I get is that there is no rule to make libGL.so Just using the opensource driver works for compiling but it doesn't work for playing Diablo 3 and WoW ;) I have reinstalled Ubuntu 3 times today and really do not feel like messing up again. Does anyboody know why this is happening and how to fix it please? (HowTos)