Adds gcc fix for compiling with -O3 (-fno-tree-vectorize needed).
Apparently this issue was caused by turning on sse stuff according to gcc docs.
Should fix #358 and #355 fully.