Tried to fix ShareLaTeX compiling errors by specifying pdflatex compiler