fdsapi: fix linking issues