build fixes for linux