a very simple c lib for cross platform.