Fixed the #include chaos. Based on this Tutorial
http://www.cplusplus.com/forum/articles/10627/