Fixed bug which caused segfault if arguments to .compile() or .execute() were incorrect.