Staticbuild

Hey guys,
                Thanks for taking the time to review my patch. https://reviews.facebook.net/D23121. Here's the final version (Original issue here https://github.com/facebook/rocksdb/pull/235 - I switched to a different branch and github won't let change branches in an existing issue =/)