Better platform detection (for C extensions).