Temp. crashfix for windows MinGW builds

when trying to construct stuff (#2233)

Turns out using -O3 provokes this crash, so changed it to -O2 as a short-term fix