Patch some require() paths for IDE crosslink usage, fix some typos