Compile .d files for extern classes