I can't even listen to music while I program, let alone an audiobook. So my suggestion is: Just give up.
Everyone's mind is different, of course, but I'd hypothesize that even if you can listen to a book and program "simultaneously", your language centers are probably doing a lot of task switching, thereby impairing your creativity. You might find that if you just focus on the programming you will ship faster, thus leaving you time in the day to enjoy your audiobook while running on the treadmill. Win-win-win.