Compile static libraries
Add library and include paths for new static libs
Fix configuration
Fix a few compilation bugs
Resolve mylmdif symbol
Fix mymin and mymax symbols