Fixed a few compialtion errors