Add support for NJS module. Various patch are required to make this module correctly compile with the required library mainly related on detecting config flags. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>