fix link, gxx vs gcc. Add example lua call