Streamline building the library and tools under linux (#463)