Duplicate code for each platform will very likely lead to libraries that poorly support the less-used platforms.