fixes for linux build