Compatibility with 5.4/5.5 etc

Changed var for private in variable definitions as var is not compatible with >5.3.*