fixed few issues in autotools project