Add in #ifdef's so that people can use this to boot something other than dip.

Fix up the code so it's half-way decent...I'm not sure if this is possible. ):
