Fixed gcc warnings generated while linking against the library.