They are exported under the dev_private output so that they aren't available automatically to dependening libraries. This also switches to cmake to simplify the patch.