makefiles linux 32bit: fix platform detection. Closes 1938
compileOF.sh: fix permission change directory
compileOF.sh: remove obj from chown
Merge pull request #1939 from arturoc/bugfix-makefiles386

makefiles linux 32bit: fix platform detection. Closes 1938