Fixed issues with position control. Fixed building issues on i386.