drop spurious '.gitignore' file from package boundle
try to be more portable

use pkg-config to determine lua LDFLAGS more reliably;
use 'R CMD config' to determine the right compiler and flags,
as per R manual