THRIFT-2571 Simplify cross compilation using CMake

See: https://issues.apache.org/jira/browse/THRIFT-2571