Patch blindly based on the last 2013q1 netbsd-6 build report:
add <cstdlib> and fix signature of main().

(this package is i386-only)