Remove dynamic code
Update paths to external libraries on Windows