Fixes to create_component and fixes for compiler errors exposed by leveldb_cc