Added gcc to apt packages, fixed pip package install check