Fixed some building on linux errors.