include stdlib.h in test.c

Fix include issue I ran into when cross-compiling for iOS