Fixed capitalization in CMake files, added FINAL_BUILD define to Release targets

http://stackoverflow.com/questions/2113822/python-getting-filename-case-as-stored-in-windows to the rescue :)
Merge branch 'cmake2'