OS X build fixes

Changes in Rust 0.11-pre may have necessitated the attribute
modifications in common/lib.rs.

These fixes, combined with building with optimizations and having a valid libcrate, allow building on OS X. Fixes #8 
I assume we don't want this link either?