Got version working on Ubuntu 12.04 with CMake. Needs to be verified and cleaned-up on a windows machine before merging into master.
Made windows fixes
Made fix that fixes linux again.
Merged with octree changes.
Merge pull request #4 from wang1262/linux

Linux