Fix build.gradle for 32-bit OSes and some date format bug