first commmit from cal3d svn source
only changes:
-use CMake instead scons
-add some linux related pthread stuff in the miniviewer