fixed builkd process and c++ compatgibility in linux