Generally, no, it's not possible to build a C library that will work smoothly across platforms.
Some BSD systems can run Linux applications (and maybe vice versa) so you could build the whole thing in that way, but it would require shipping a Linux Python.