Removed all dependencies on stdlib.h