Update ax_boost_system.m4

Upgraded to serial 17.

- Use 'ls -r' rather than non-portable tool 'tac'. Simplify filepattern in ls expression so dylib (on OSX) are also detected.