Fixed system dependent library path handling for subprojects.