ACCESS: Fix compiler warnings and deallocation crash on exit