Add automake and m4 to buildrequires