fixes for linux building