Linux build works, fixed some warnings