added initial bits for compilation check using subprocess.check_output which is in python 2.7+