Use pkg-config to improve feature checking and CFLAGS, LIBS parameter building

this change is based on the parameter of ExtUtils::MakeMaker:

http://perldoc.perl.org/ExtUtils/MakeMaker.html