Fix pkgconfig file name
Fix `-Wpedantic` -> `-pedantic` for the old gcc
Fix various warnings and add `-lrt` for older libc