Changed CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR to support internal builds.
Don't install headers when building internally.
Cleaned up the include of SmallMath and further prepared the project for internal building.