Rebuild project sturcture.

Fixed compilation errors.
Added gl3d dependencies.
Resolved include errors.