Portability

- Improved platform recognition (thanks to Jakub Wilk).
Bug #1477

- Pre-compiled static library (*.a) in source tarball (thanks to Jakub Wilk).