add osmodel.mak to detect MODEL and OS

- Use OS in uppercase for TARGET_LINUX macro
Merge pull request #3004 from MartinNowak/osmodel

add osmodel.mak to detect MODEL and OS
Build dmd as static libraries on posix