refactoring nimble project layout, to better support cross-platform builds