Revert 44b5918c8274f166347dd5ebe8c046ca8d193f9e.
It causes a potential inconsistency with loading game .so files from places it probably shouldn't.
Fixed compiler errors in rd-vanilla SP project.