cpp: Use -pthread by default