proper error on missing main function (fixes #69)