Linking the libs does work now properly.