Linux workaround for static linking