Some XCC toolchains do not provide atexit() which results in undefined reference error. So add a weak dummy atexit() for this siutation. Signed-off-by: Daniel Leung <daniel.leung@intel.com>