Fix building for OpenWrt on MacOS.

OpenWrt can be built on MacOS hosts.  This fixes an issue with generating
shared libraries in SCons for OpenWrt.

Change-Id: Ifa9f5ce769292d71a2db348e9d166389e0849318