Fixed reading of attribute values

Should not be doing integer division, which cuts off the fractional
part.

Also initialize and reset the attribute and correction points.
Made the linux builds FHS compatible

Fixed qbs builds.
Hopefully i broke nothing android or tizen related. But I was unable to
test since the qt5.2 android stuff is not working properly here yet :/