fixes for linux compiler