How am I supposed to develop a multi-platform library for Arduino?

Conditional compiles.

A subversion repository for a benchmark I wrote is https://svn.riouxsvn.com/blindally-pub/bench2/ . You don’t have to download it, as you can just walk through it with a web browser and see the code.