You need to call glewInit() before using OpenGL extensions, such as glGenBuffers. Additionally you need to initialize your gl context before starting to bind anything. So use this:
setupProjection() glewInit() Init()