Autotools: Add missing include and library flags