Changed library building to include external libs

Made it to make lib more easy to use, because now it doesn't need other
libraries to work (except glew, but it's has to be done soon)