fix automake scripts doesn't work on some linux system.