Log Message: Fix some build issues exposed by the cwrappers build: - Use REPLACE_SH for echo -n. - Use LD_LIBRARY_PATH for tests to find pre-installed libraries. - Fix parallel build issues.