Made library compilable with `f32`

Closes https://github.com/PistonDevelopers/graphics/issues/671