Added support for different lib types and extlibs directory

Have two variables for static vs dynamic libs
Automatically update library and include paths if ext libs var is set