Fixed library errors on linux
Created script for easy library compilation