fixed a link bug by making c++ default language (silly hack)