Fixed compile errors on Linux

Rectified minor errors in names (case sensitive on Linux) and missing headers after the previous modifications to make this able to compile and run on Windows. Should be working in Linux now (tested on Linux Mint 14).