Put BuildSettings into its own module and invoke DMD to determine the actual build platform.

Currently only for DMD, the build platform is now determined by actually invoking the compiler with the proper -mX switches instead of guessing from the compiler run that was used to build DUB.
Add the compiler frontend version to the build hash. Fixes #284.
Remove debug log noise.