fix gdc/ldc build options

With --compiler=gdc or --compiler=ldc2 the build options are not passed to the compiler.  This can be observed when building with the -v option.