Linux compile fixes, fixed bug after changing the orientation