Maybe it's not uber optimized, but what about just doing a swift hunter // wizard combo?
Such as...
Scout3/Ranger17
Wizard X / Wizard PrCs (20-X)
Taking swift hunter, improved skirmish, favored enemy arcane/undead/construct/elementals, grab quicken spell metamagic and the rest are open for either ranged combat feats or caster feats. You'll need to be human or something with favored class ranger -- you can always use extra feat and skills from human.
You can either also have a lot of ranger spells, or give them up with an alternate class feature and get more feats if they're needed. (Ranger spells are possibly better to have, but with already having full wizard spell list you may find the feats preferable... I think you get 3 bonus feats if you give up spells... I'd have to look up the ACF)
Then you focus on being ranged, you only miss out on one BAB, you have the skills of the scout and ranger for traps/locks/etc, plenty of skill points as you'll only need high dex and int...
Super survivability because you are constantly moving, you're at range, and have a full compliment of wizard buffs to help keep you alive. You get mostly ranger hitpoints which is pretty great for someone not right up in melee.
If you rely on the swift hunter side for damage you may need to find a few ways to move 20 feet as a swift action (quickened dimension hop would work, there is a chronocharm that lets you do it once a day, travel devotion feat will let you do it for 1 combat a day, etc).... but you can just use that when you don't want to cast a spell.... you have full wizard casting progression on the other side that you can use to disable or destroy your opponents...