Build on tor-bundle.git
After more work on the patches and builds, I finally boiled it down to one file.
toolkit/xre/nsXREDirProvider.cpp seemed to be the one that causes problems. It was modified as a fix for https://trac.torproject.org/projects/tor/ticket/9173 . The current repo produces a working app when that file is replaced with an earlier file from the esr38release branch.
Currently I'm leaving the issue with that file at that and moving on to fixing the app for pre 5.0 which currently causes a crash. Discussion with the tbb-dev team about this is underway.
Current branch can be found at https://github.com/amoghbl1/tor-browser/tree/orfox-tb_GECKO380esr_2015050513_RELBRANCH . The Orfox repo is being updated in parallel as well to keep it up with building on the Jenkins server.