fix profile build on gcc