implemented proper parallel compilations
wait for events if glfwInit fails