ax_boost_python.m4: do a better job of identifying the correct object file

2 jobs for master in 253 minutes and 34 seconds (queued for 3 seconds)