oculus 0.4.4 sdk with Unity 4.6 error "does not contain a definition for worldspace"

I kept getting this error when integrating oculus 0.4.4 with Unity 4.6.0 beta 20

assets/ovr/scripts/util/ovrmainmenu.cs(252,43); error CS0117;unityengine.rendermode does not contain a definition for 'worldspace'

i tried several things. uninstalling and reinstalling the runtime, many reboots, examining the scripts etc. i also couldn't seem to find the answer online. the fix ended up being to update to Unity 4.6.1

once Unity 4.6.1 opened, the worldspace error was gone but i now had an error that said 

unauthorizedAccessException: Access to the path "Library\Unity\Assemblies\UnityEngine.xml" is denied
System.IO.File.Delete(System.String.path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:1

the fix to this is to close Visual Studio

 

sidenote: while researching these errors, i read that if you are having the worldspace error with Unity 5 you need to comment that out in the script causing the error.

 

hope this helps someone out there =)