Update the makefile

Made several changes:
    * Added -pipe and -O3
    * Changed the standard to C++11
    * Added comments to the variable assignment
    * Updated the location of the library
    * Added the libraries as a variable instead of hard coded