Samples: Fix TestClass usage
getopt: Run against Lua 5.1 or 5.2