use AC_USE_SYSTEM_EXTENSIONS macro in src/configure.ac

Change-Id: I91a767ccfb82218dc32605e6d9246ded0c3cc517