Moved to cmake and added erorcun's changes from http://forum.sa-mp.com/showpost.php?p=3036240&postcount=152