apparently, --no-as-needed is required for newer versions of gcc, else the resulting library does not link to librt, no idea why