After reading this article I decided to google a bit to gain a bit more insight:

I also remember hearing on radio the other day that recent studies somwhere found the niches in many mosque  walls that determinate the qiblah to be oriented incorrectly. If anyone is familiar with the study maybe they could post the link?