This backports commit 8e72fad3c to the RC_1_1 branch, taking into account that C++98 is allowed for RC_1_1 with older boost versions.
Replace full library names with -L commands and -llib-name pairs. This way it resembles what autotools produce and additionally -l can not be used with GNU linker and full paths (as it prepends "lib" to such arguments). Fixes #3424.
This fixes generated pkg-config file and adds options to build python bindings.