Try to support both lua and lua5.1 naming schemes in the makefile