gpsd build fails on macos due to using sys.platform in build logic. This patch allows to redefine target platform to fix the issue. Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>