patch to allow save as
fix also SIGSEV changing project, it was linked to "mainbuffer" variable
this variable don't need to be forced aligned