Fixed makefiles for platforms other than marmalade