librfn: Separete the platform specific code

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>