more work to compile on solaris (currently i have an out date lua 5.1 so any lua bits are untested)