Fixed linker build settings for separate linking.