Very bad performance if I compile the example for ESP32-CAM

I was comparing the board definitions from Platformio and Arduino and the only thing I can see is:

esp32cam.build.extra_libs=-lc-psram-workaround -lm-psram-workaround

Could these flags be the cause?
How do I use these in Platformio?