DMD static library build fix, attempt 2

Better attempt to fix DMD static library linking.