Fixes compiler and runtime errors. pBrunswick is fully playable with headTracker.