CAR 328824 has been filed to address this issue in a future release. In the meantime, make sure that the option "Remove unused members of project libraries" is enabled in the build specifications, under Additional Exclusions. That should fix the issue.
-Christophe