use cmake and add option to use shipped lua or system lua