Build fixes for linux