Installation improvements


 - Improves detection of libpng and libcurl by using pkg-config (jpeg does not provide one so that remains the same)
 - Adds basic instructions about how to install, giving detail for ubuntu
 - Improves makefile to respect `$CXXFLAGS`, `$LDFLAGS`, and `$CXX` if set by user