Linux build fix

Fix for crosses initialization caused by calling ```goto end;``` before initialization of pointers used later after ```end:``` label