rake: fix api generator for prebuilt extensions