Yosemite - Change default C and fortran compilers
After some deeper research, I came up with the solution. I solved this problem by using MacPorts:

sudo port select --set gcc mp-gcc49


So, problem solved!