Cleanup and remove unnecessary deps - adjust build flags for ruby