mescc: Support gcc-3.0: Implement atexit.