Build fixes for Linux