oprofile: add -fpermissive for C++ to fix build errors