support librtc build for all platforms