Compatibility issues

Fixed compatibility issues for Ubuntu Precise & Saucy