improved parallel boot code

stolen from boot::boot, by BDR
should work on Windows now ...