Implement -dM preprocessor option as in gcc