Fix memory allocation function names in SPIRAL wrapper code.
Add -mavx to compilation flags.