fix linking of python bindings when building against libmapnik.a
scons: use VariantDir to avoid 'Two environments with different actions' error when building both cpp_tests and with PLUGIN_LINKING=static