Fixed issue with subdir-objects and automake versions less then 1.11.2 which doesn't have AM_PROG_AR macro defined.