make gamelib and main