Add rule to compile a shared object of the device-specific leap API