Make the DSO code for VMS work again. First attempt.