Moved the code to a library.

With the osg-oculus code in a library it is easier to link to other applications. The executable then links main.cpp with the library. Another executable links another main.cpp to the same library.