Added main function capability so that the bitcode generated can be executed.