I know this isn't helpful, but if the program works fine otherwise, why is it necessary to rewrite it from scratch? Is your program finished?
As a hack, you could try writing the problematic sections of code in C and then include them into the BlitzMax source...
As a hack, you could try writing the problematic sections of code in C and then include them into the BlitzMax source...