Compile errors are gone, now to fix crash problems