Create static mesos library.

Review: https://reviews.apache.org/r/24252